<?php
/**
 * smarty plugin
 * @package smarty
 * @subpackage plugins
 */


/**
 * smarty {css} function plugin
 *
 * type:     function<br>
 * name:     css<br>
 * purpose:  create a css link
 * @link http://
 * @param array
 * @param smarty
 * @return string
 */
function smarty_function_css($params,&$smarty)
{
	$file = $params['file'] or array();
	$base  = BASEURI;

    $html  = '<link rel="stylesheet" href="'.BASEURI.'apps/'.THISAPP.'/public/css/'.$file.'">';
    return $html;
}
?>
